<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="b" uri="/bbs-tags"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'blogMessageBoard.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" type="text/css" href="css/footer.css">
		<link rel="stylesheet" type="text/css" href="css/blog_header.css">

		<link rel="stylesheet" type="text/css"
			href="css/blog_center_right.css">
		<link rel="stylesheet" type="text/css" href="css/blog_top_head.css">
		<link rel="stylesheet" type="text/css" href="css/blogDiary.css">
		<link rel="stylesheet" type="text/css" href="css/pageStyleOne.css">
		<script type="text/javascript" src="js/parseIcon.js">
</script>
		<script type="text/javascript">
function show_hideShareEdit() {
	$(".hide_share_edit").css("display", "inline");
}
function close_hideShareEdit() {
	$(".hide_share_edit").css("display", "none");
}
</script>
	</head>

	<body onload="parseIcon()">
		<div class="tbody">
			<%@ include file="styleJsp/blog_top_head.jsp"%>
			<div class="table">
				<%@include file="styleJsp/blog_header.jsp"%>
				<div class="center">
					<div id="content">
						<div class="center_left">
							<div class="center_left_title">
								<b>日志</b>
								<a href="getRightListAction_getDiaryRightList?userId=${userId}">发表新日志</a>
							</div>
							<s:iterator value="diaryList">
								<div class="center_left_context">
									<div class="center_left_context1">
										<div class="center_left_context1-1">
											<span><a
												href="lookDiaryAction_lookDiaryDetails?diaryId=<s:property value='diaryId' />&pageNo=1&userId=${userId}"><s:property
														value="diaryName" /> </a> </span>
										</div>
										<div class="center_left_context1-2">
											<span><s:property
													value="diaryDate.toString().substring(0,16)" /> </span>
										</div>
										<div class="center_left_context1-3">
											<span><s:property value="diaryContent" /> </span>
										</div>
										<div class="center_left_context1-4">
											<span><a href="#"><s:property value="diaryReply" />个评论</a>
											</span>
											<span>|</span>
											<span><a
												href="lookDiaryAction_lookDiaryEdit?diaryId=<s:property value="diaryId" />&userId=${userId}">编辑</a>
											</span>
											<span>|</span>
											<span><a
												href="deleteDiaryAction_deleteFatherDiary?diaryId=<s:property value='diaryId'/>&userId=${userId}">删除</a>
											</span>
										</div>
									</div>
									<!-- 
									<div class="center_left_context2">
										<span class="center_left_context2-1"><img
												src="images/shareIcon.png" /> </span><span
											class="center_left_context2-2"><a href="#">分享</a> </span>
									</div> -->
								</div>
							</s:iterator>

							<div>
								${pagination}
							</div>
						</div>
					</div>
					<%@ include file="styleJsp/blog_center_right.jsp"%>
				</div>
				<%@ include file="styleJsp/footer.jsp"%>
			</div>
		</div>
	</body>
</html>
